{% macro dev_heading(addon, amo) %}
  <h3>
    {% set is_complete = addon.has_complete_metadata() or addon.status != amo.STATUS_NULL %}
    {% if is_complete %}<a href="{{ addon.get_dev_url() }}">{% endif %}
    {% if addon.type == amo.ADDON_STATICTHEME and addon.current_previews %}
      {% set icon_url = addon.current_previews[0].thumbnail_url %}
    {% else %}
      {% set icon_url = addon.get_icon_url(64) %}
    {% endif %}
    <img class="icon" src="{{ icon_url }}" alt="">
    {{ addon.name }}{% if is_complete %}</a>{% endif %}
  </h3>
{% endmacro %}

{% macro dev_item_info(addon, amo) %}
  {{ reviews_link(addon) }}
  <p class="downloads">
    {% with num=addon.weekly_downloads %}
      {# L10n: {0} is the number of downloads. #}
      {{ ngettext("<strong>{0}</strong> weekly download",
                  "<strong>{0}</strong> weekly downloads",
                  num)|format_html(num|numberfmt)|safe }}
    {% endwith %}
  </p>
  <p class="users">
    {% with num=addon.average_daily_users %}
      {# L10n: {0} is the number of active users. #}
      {{ ngettext("<strong>{0}</strong> active user",
                  "<strong>{0}</strong> active users",
                  num)|format_html(num|numberfmt)|safe }}
    {% endwith %}
  </p>
{% endmacro %}
